package com.googlecode.continuity.plugin.codecomment.client;

import java.io.Serializable;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * CodePointer
 *
 * @author Peter Schmitt <aragos@aragos.de>
 */
public class CodePointer implements IsSerializable, Serializable {
// ------------------------------ FIELDS ------------------------------

  private int id;
  private String name;
  private String url;
  private int firstLine;
  private int lastLine;
  private long version; // if used with versioning system

// --------------------- GETTER / SETTER METHODS ---------------------

  public int getFirstLine() {
    return firstLine;
  }

  public void setFirstLine(int firstLine) {
    this.firstLine = firstLine;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public int getLastLine() {
    return lastLine;
  }

  public void setLastLine(int lastLine) {
    this.lastLine = lastLine;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public long getVersion() {
    return version;
  }

  public void setVersion(long version) {
    this.version = version;
  }
}
